package com.design.pattern.memo;

/**
 * 棋子(需要被备份的数据)
 */
public class Piece {
    /**
     * 棋子颜色(需要备份)
     */
    private PieceColor color;
    /**
     * 棋子X坐标(需要备份)
     */
    private Integer coordinateX;
    /**
     * 棋子Y坐标(需要备份)
     */
    private Integer coordinateY;
    /**
     * 思考时间
     */
    private Long thinkingTime;

    public PieceColor getColor() {
        return color;
    }

    public void setColor(PieceColor color) {
        this.color = color;
    }

    public Integer getCoordinateX() {
        return coordinateX;
    }

    public void setCoordinateX(Integer coordinateX) {
        this.coordinateX = coordinateX;
    }

    public Integer getCoordinateY() {
        return coordinateY;
    }

    public void setCoordinateY(Integer coordinateY) {
        this.coordinateY = coordinateY;
    }

    public Long getThinkingTime() {
        return thinkingTime;
    }

    public void setThinkingTime(Long thinkingTime) {
        this.thinkingTime = thinkingTime;
    }

    public Piece(PieceColor color, Integer coordinateX, Integer coordinateY, Long thinkingTime) {
        this.color = color;
        this.coordinateX = coordinateX;
        this.coordinateY = coordinateY;
        this.thinkingTime = thinkingTime;
    }

}
